import Vue from 'vue'
import Router from 'vue-router'

let ANiuContent = (resolve) => { require(['../components/ANiuContent'], resolve) }
let VedioDetail = (resolve) => { require(['../components/VedioDetail'], resolve) }
let VedioList = (resolve) => { require(['../components/VedioList.vue'], resolve) }
let EdiArticle = (resolve) => { require(['../components/EditorArticle'], resolve) }
let Subject = (resolve) => { require(['../components/Subject'], resolve) }
let Article = (resolve) => { require(['../components/Article'], resolve) }
let AllArticle = (resolve) => { require(['../components/AllArticle'], resolve) }
let SpecificArticle = (resolve) => { require(['../components/SpecificArticle'], resolve) }
let VedioShow = (resolve) => { require(['../components/VedioShow'], resolve) }
let CategoryArticle = (resolve) => { require(['../components/CategoryArticle'], resolve) }

Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/index',
      name: 'content',
      component: ANiuContent
    },
    {
      path: '/vediodetail',
      name: 'vediodetail',
      component: VedioDetail
    },
    {
      path: '/vediolist',
      name: 'vediolist',
      component: VedioList
    },
    {
      path: '/ediarticle',
      name: '/ediarticle',
      component: EdiArticle
    },
    {
      path: '/showArticle',
      name: '/showArticle',
      component: EdiArticle
    },
    {
      path: '/article',
      name: '/article',
      component: Article
    },
    {
      path: '/subject',
      name: '/subject',
      component: Subject
    },
    {
      path: '/allArticle',
      name: '/allArticle',
      component: AllArticle
    },
    {
      path: '/specificArticle/:nodeId',
      name: '/specificArticle',
      component: SpecificArticle
    },
    {
      path: '/vedioShow',
      name: 'vedioShow',
      component: VedioShow
    },
    {
      path: '/categoryArticle',
      name: 'categoryArticle',
      component: CategoryArticle
    }
  ]
})
